import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { AnchorQuery } from '@/api/advertisement/nativeAnchor/types';
import {AnchorVO} from "@/api/advertisement/nativeAnchor/types";

/**
 * 获取原生锚点列表
 * @param query
 * @returns {*}
 */

export const listNativeAnchor = (query?: AnchorQuery): AxiosPromise<AnchorVO[]> => {
  return request({
    url: '/oce/third/getNativeAnchor',
    method: 'get',
    params: query
  });
};
export const addCreateNativeAnchor = (query?: AnchorVO): AxiosPromise<AnchorVO> => {
  return request({
    url: '/oce/third/createNativeAnchor',
    method: 'post',
    data: query
  });
}